package net.pws.oos.biz.event;

import java.util.Set;

import net.pws.common.event.ApplicationEventObject;
import net.pws.oos.biz.model.Notice;
import net.pws.oos.biz.model.User;

public class NoticeCreatedEventObject extends ApplicationEventObject {
    
    /**
     * 
     */
    private static final long serialVersionUID = 2191242938058759330L;
    
    private Set<User> users;
    
    public NoticeCreatedEventObject(Notice notice, Set<User> users) {
        super(notice);
        this.users = users;
    }
    
    public Set<User> getUsers() {
        return users;
    }
    
    public Notice getNotice() {
        return (Notice) super.getSource();
    }
}
